using UnityEngine;
using System.Collections;

public class EventScrollPerks : MonoBehaviour {

	GUIButton button;
	public bool scrollUp;
	public GUIPanelPerks guiPanelPerks;
	//private int totalPerksCount;
	
	void Start ()
	{
		button = gameObject.GetComponent<GUIButton>();
		button.OnClickCallback += OnClick;
	//	totalPerksCount = Perks.Perk.GetPerksDictionary().Count;
	}
	
	void OnClick(Vector3 pos){
	/*	if (scrollUp){
			if (guiPanelPerks.startingIndex > 0)
				guiPanelPerks.startingIndex--;
		}else{
			if (guiPanelPerks.startingIndex < totalPerksCount-10){
				guiPanelPerks.startingIndex++;	
			}
		}*/
		guiPanelPerks.ScrollPerk(scrollUp);
	}
}
